﻿@{
    ViewBag.Title = "Список маршрутов";
}
@using System.Web.DynamicData
@using wne.models
@model List<wne.models.RouteModel>
   


<script language="javascript" src="/Scripts/RouteList.js"></script>
<link href="/Content/RouteList.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet" />
<div class="row-fluid">
    
    
    <div class="hero-unit" style="padding: 14px 10px 14px 20px; margin-left: 2px;">

        <h2>Список маршрутов</h2>
        
        <div class="span3" style="padding-top: 25px;">
            <a class="btn btn-primary " href="/Admin/EditRoute/">Создать маршрут &raquo; </a>
        </div>

        <form method="post" class="filter" style="margin-top: 35px; ">
            <input type="text" class="hidden" value="@ViewBag.orderNum" name="orderNum" />
            <input type="text" value="@ViewBag.searchString" name="searchString" />
            <input type="submit" value="Найти" class="btn btn-info"/>
        </form>
    </div>
    

    <table class="route-table table">
        <thead>
            <tr class="route-table-head">
                <th class="name-col">
                    <i class="icon-chevron-up hidden"></i>
                    <i class="icon-chevron-down"></i>
                    Название
                </th>
                <th class="delete-col"></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var q in Model)
            {
                <tr id="@q.RouteId">
                    <td class="name-col"><a href="/Admin/EditRoute?id=@q.RouteId">@q.RouteName</a></td>
                    <td class="delete-col"><i class="icon-remove"></i><!--<button class="btn btn-small btn-danger" type="button"><i class="icon-trash" style="color: red;"></i>Удалить</button>--></td>
                </tr>
            }
        </tbody>
    </table>
</div>
    
